#!/usr/bin/env python
#-*- coding:utf-8 -*- 

import matplotlib.pyplot as plt
import numpy as np

x = np.linspace(0, 2, 25)
y = -np.power(x, 2)
y = np.power(np.sin(x-2), 2)*np.power(np.e, y)

plt.figure()

plt.plot(x, y, label = 'trend')
plt.title(r'$sin^2(x - 2) e^{-x^2}$')	#r+Latex格式的公式
plt.xlim((0, 2))
plt.xlabel(('x label'))
plt.ylabel(('y label'))




plt.show()

